﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MainServerTest.Webservice;
using LocalServerApp;

namespace MainServerTest
{
    class Program
    {
        static void Main(string[] args)
        {
            MainServerClient proxy = new MainServerClient();
            bool license = false;
            license = proxy.isLicenseValid("mortenx");
            Console.WriteLine(license);
            Console.ReadLine();

            //List<LogEntry> logEntries = new List<LogEntry>();
            //LogEntry e1 = new LogEntry();
            //e1.Cpr = "1234567890";
            //e1.CustomerID = "morten";
            //e1.Birthdate = "1212121975";
            //e1.EventDsc = "test";
            //e1.Gender = true;
            //e1.Session = new DateTime(2010, 12, 04, 19, 45, 00);
            //e1.TimeStamp = new DateTime(2010, 12, 04, 19, 45, 00);
            //e1.ZipCode = "8000";
            //logEntries.Add(e1);

            //LogEntry e2 = new LogEntry();
            //e2.Cpr = "1425367485";
            //e2.CustomerID = "morten";
            //e2.Birthdate = "0101011966";
            //e2.EventDsc = "test";
            //e2.Gender = true;
            //e2.Session = new DateTime(2010, 12, 05, 09, 45, 00);
            //e2.TimeStamp = new DateTime(2010, 12, 05, 09, 45, 00);
            //e2.ZipCode = "9000";
            //logEntries.Add(e2);

            //LogEntry e3 = new LogEntry();
            //e3.Cpr = "1425367485";
            //e3.CustomerID = "morten";
            //e3.EventDsc = "test";
            //e3.Session = new DateTime(2010, 12, 05, 09, 45, 00);
            //e3.TimeStamp = new DateTime(2010, 12, 05, 09, 45, 00);
            //logEntries.Add(e3);

            //bool test = proxy.submitLogEntry(logEntries.ToArray());
            //Console.WriteLine(test);
            //Console.ReadLine();

            //LocalServerService service = new LocalServerService();
            //service.submitLogEntries();

        }
    }
}
